package com.example.thymeleaf.controller;

import com.example.thymeleaf.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class ObjectController {
    @GetMapping("object")
    public String object(Model model) {
        model.addAttribute("user", new User(1, "name1"));
        return "object";
    }
}
